package com.wrx.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wrx.server.pojo.ReplyPost;
import com.wrx.server.pojo.ReplyPostModel;
import com.wrx.server.pojo.RespBean;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wrx
 * @since 2021-04-20
 */
public interface IReplyPostService extends IService<ReplyPost> {

    /**
     * 分页输出主题帖中的回帖
     * @param theme_post_id
     * @param pageNum
     * @param pageSize
     * @param orderByType
     * @return
     */
    public RespBean putPageReplyPost(int theme_post_id, int pageNum, int pageSize, int orderByType);

    public RespBean addReplyPost(ReplyPost replyPost, HttpServletRequest request);

    public RespBean delReplyPost(ReplyPostModel replyPostModel, HttpServletRequest request);
}
